package com.bigmi.admin.controller;

import com.bigmi.admin.service.AdminLoginService;
import com.bigmi.model.admin.dto.AdUserDto;
import com.bigmi.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/login")
public class AdminLoginController {
    @Autowired
    private AdminLoginService adminLoginService;
    @PostMapping("/in")
    public ResponseResult login(@RequestBody AdUserDto dto){
        return adminLoginService.login(dto);
    }
}
